package stage1.module3.homework5;

public class Card implements Comparable<Card>{
    private String name;   //扑克牌名称
    private int big;       //扑克牌大小
    public Card(String name, int big){
        this.name = name;
        this.big = big;
    }

    @Override
    public int compareTo(Card o) {
        return Integer.compare(o.getBig(), this.getBig());
    }

    @Override
    public String toString() {
        return name;
    }

    public String getName() {
        return name;
    }

    public int getBig() {
        return big;
    }


}
